import request from "@/utils/request";

// 查询药品出库主列表 (分页)
export function selectPageDrugExportMaster(query) {
    return request({
        url: "/drug/drugExportMaster/selectPage",
        method: "get",
        params: query,
    });
}

// 查询药品出库主列表 (不分页)
export function listDrugExportMaster(query) {
    return request({
        url: "/drug/drugExportMaster/list",
        method: "get",
        params: query,
    });
}

// 查询药品出库主详细
export function getDrugExportMaster(exportId) {
    return request({
        url: "/drug/drugExportMaster/" + exportId,
        method: "get",
    });
}

// 新增药品出库主
export function addDrugExportMaster(data) {
    return request({
        url: "/drug/drugExportMaster",
        method: "post",
        data: data,
    });
}

// 修改药品出库主
export function updateDrugExportMaster(data) {
    return request({
        url: "/drug/drugExportMaster",
        method: "put",
        data: data,
    });
}

// 删除药品出库主
export function delDrugExportMaster(exportId) {
    return request({
        url: "/drug/drugExportMaster/" + exportId,
        method: "delete",
    });
}

// 撤销药品出库主
export function cancelExportMaster(data) {
    return request({
        url: "/drug/drugExportMaster/cancelExportMaster",
        method: "post",
        data: data,
    });
}